/*
 * @Author: 黄威
 * @Date: 2021-07-21 17:32:53
 * @LastEditors: 黄威
 * @LastEditTime: 2021-09-07 11:53:07
 * @Description: 日志打印
 */
import settings from '@/settings'

export function Log(message: string, logMsg: any, ...messages: any[]) {
    if (settings.log) {
        console.log(message + '：', logMsg, ...messages)
    }
}

export function Error(message: string, error: any, ...messages: any[]) {
    if (settings.log) {
        console.error(message + '：', error, ...messages)
    }
}
